package com.tools.repository;

import com.tools.model.entity.TasksEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface TaskRepository extends JpaRepository<TasksEntity, Long>, JpaSpecificationExecutor<TasksEntity>

{
    void  deleteByTaskId(String taskid);
    TasksEntity findByTaskId(String taskid);
    List<TasksEntity> findByUserId(String userId);
}
